<%@page import="com.sinba.common.system.dto.RuleDTO"%>
<%@page import="com.sinba.common.system.service.IRuleService"%>
<%@page import="org.springframework.web.context.support.WebApplicationContextUtils"%>
<%@page import="org.springframework.context.ApplicationContext"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<fmt:setLocale value="${empty cookie['language'].value?'zh_CN':cookie['language'].value}"/>
<fmt:setBundle basename="i18n.itilbase"/>
<c:set var="lang" value="${empty cookie['language'].value?'zh_CN':cookie['language'].value}" /> 

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title><fmt:message key="i18n.title"/>-<fmt:message key="i18n.500ErrorTitle"/></title>
<script type="text/javascript" src="../scripts/jquery/jquery-1.4.2.min.js"></script>
<script src="../scripts/jquery/easyui/jquery.easyui.min.js"></script>
<%
ApplicationContext ac = WebApplicationContextUtils.getWebApplicationContext(getServletContext());
IRuleService ruleService = (IRuleService)ac.getBean("ruleService");
//Map<String,Double> maps = ruleService.findRuleMap(new String[]{"CloseWeb"});
RuleDTO ruleDTO = ruleService.findRuleInfo();
request.setAttribute("ruleDTO",ruleDTO);
%>
<script type="text/javascript">
$(function(){
	if('${ruleDTO.rule021}'=='false')
		window.top.location.href='index.jsp';
})
</script>
</head>

<body>
<div style="font-size: 25px;font-weight: 600;text-align: center;padding-top: 100px;">

${ruleDTO.rule001 }
</div>


</body>

</html>